#include <stdio.h>
#include <string.h> 


void reverse(char * str)
{
	int len =strlen(str);
	char *left = str;
	char *right = str+len -1;
	
	while(left < right)
	{
		char temp = *left;
		*left = *right;
		*right = temp; 
      	
		left++;
		 right--;	
 	}	
	
}


int main()
{
	char arr[30] = {0};
	scanf("%s",&arr);

	reverse(arr);
	
	printf("%s",arr); 
	
	
	return 0;
 } 
